<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2016/8/22
  Time: 14:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<style>
    .detail-description-title{
        font-size: 18px;color: #003399;font-weight: bold;text-align: left;font-family: 微软雅黑
    }
    .detail-description-content{
        font-size: 16px;color: #666666;line-height: 1.5;text-align: left;font-family: 微软雅黑;
    }
</style>

<script type="text/javascript" src="${cdnContentPath}/static/framwork7/dist/js/framework7.min.js"></script>
<script type="text/javascript" src="${cdnContentPath}/static/js/unslider.min.js"></script>
<script type="text/javascript" src="/view/common/project.js"></script>
<!-- 爆款和收藏搜索结果使用此模板 -->
<script type="text/template7" id="searchDataList">
    <div style="height:7px"></div>
    {{#each list}}
    <div class="list-block media-list inset " style="margin:10px 0 0 0 ;height:100px;width:100%;font-size:14px"
         name="items">
        <ul style="border-radius: 0px;"><li><a href="../../menu2/detail.jsp?targetId={{content.id}}&typeId={{content.typeId}}" onclick="App.showLoading()" class="item-link item-content">
            <div class="item-media" style="width:120px">
                <div style="height:80px">
                    <img src="${photoPath}{{content.contentLogo}}" style="display:block;height:100%;">
                </div>
            </div>
                    <div class="item-inner">
                        {{#if content.oldPrice}}
                        <div style="height:40px;width:100%;overflow:hidden;">{{content.title}}</div>
                        {{else}}
                        <div style="height:40px;width:100%;overflow:hidden">{{content.title}}</div>
                        {{/if}}

                        <div style="height:40px;width:100%;">
                            <div style="height:20px;color:#696969;font-size:12px">地区:{{cityName}}</div>
                            <img src="${cdnContentPath}/static/image/search/price-title-2x.png" width="37"/>
                            <span style="color:#FF5B61;font-size:14px;font-weight: bold">￥{{content.price}}元/人</span>
                            <span style="color: #103103;font-size:12px;text-decoration:line-through">￥{{content.oldPrice}}元/人</span>
                        </div>
                    </div>
                </a>
            </li>
        </ul>
    </div>
    {{/each}}
</script>
<!-- 门票券票搜索结果使用此模板 -->
<script type="text/template7" id="contentSearchDataList">
    {{#each DataList}}
    <div class="list-block media-list inset " style="margin:0px;margin-top: 10px;width:100%;height:100px;font-size:14px;border-radius:1px"
         name="items">
        <ul style="border-radius: 0px;"><li><a href="${ctx}/view/menu2/detail.jsp?targetId={{id}}&typeId={{typeId}}" onclick="App.showLoading()" class="item-link item-content">
            <div class="item-media" style="width:120px">
                <div style="width:80px;height:80px">
                    <img src="${photoPath}{{contentLogo}}" style="display:block;height:100%;">
                </div>
            </div>
            <%--<div class="item-inner">
                <div style="height:40px;width:100%;overflow:hidden;">{{title}}</div>
                {{#if oldPrice}}
                    <div style="height:20px;width:100%;color:#999;text-decoration:line-through">￥{{oldPrice}}元/人</div>
                {{else}}
                {{/if}}
                <div style="float: right;width:50px;height:30px"><img src="../../../static/image/search/price-title.png" width="37"/></div>
                <div style="height:10px;width:100%;color:red">￥{{price}}元/人</div>
            </div>--%>
            <div class="item-inner">
                {{#if oldPrice}}
                <div style="height:40px;width:100%;overflow:hidden;">{{title}}</div>
                <%--<div style="height:20px;width:100%;color:#999;text-decoration:line-through">￥{{data.oldPrice}}元/人</div>--%>
                {{else}}
                <div style="height:60px;width:100%;overflow:hidden">{{title}}</div>
                {{/if}}

                <div style="height:40px;width:100%;">
                    <div style="height:20px"> </div>
                    <img src="${cdnContentPath}/static/image/search/price-title-2x.png" width="37"/>
                    <span style="color:#FF5B61;font-size:14px;font-weight: bold">￥{{price}}元/人</span>
                    <span style="color: #103103;font-size:12px;text-decoration:line-through">￥{{oldPrice}}元/人</span>
                </div>
            </div>
        </a></li>
        </ul>
    </div>
    {{/each}}
</script>
<!-- 订单搜索结果模板 -->
<script type="text/template7" id="orderSearchDataList">
    <div style="height:7px"></div>
    {{#each DataList}}
    <div class="list-block media-list inset " style="margin:10px 0 0 0;width:100%;height:180px;font-size:14px"
         name="items">
        <ul style="border-radius: 0px;">
            <li>
                <div style="width:100%;height:40px;line-height: 40px;border-bottom: 1px solid #E5E5E5;border-top: 1px solid #E5E5E5;padding: 0 17px;">
                    <div style="width:4px;height:15px;background:#509AF1;margin:11px 3px;float:left"></div>
                    订单号：{{order.orderNumber}}
                </div>
                {{#if visaTag}}
                    <a href="../../menu2/visa/detail.jsp?targetId={{target.id}}&typeId={{order.typeId}}" onclick="App.showLoading()" class="item-link item-content">
                        <div class="item-media" style="width:120px">
                            <div style="width:80px;height:80px">
                                <img src="${photoPath}{{target.contentLogo}}" style="display:block;height:100%;">
                            </div>
                        </div>
                        <div class="item-inner">
                            <div style="height:40px;width:100%;overflow:hidden;">{{target.title}}</div>
                            <div style="height:40px;width:100%;">
                                <div style="height:20px"> </div>
                                <img src="${cdnContentPath}/static/image/search/price-title-2x.png" width="37"/>
                                <span style="color:#FF5B61;font-size:14px;font-weight: bold">￥{{target.price}}元/人</span>
                                <span style="color: #103103;font-size:12px;text-decoration:line-through">￥{{target.oldPrice}}元/人</span>
                            </div>
                        </div>
                    </a>
                {{else}}
                    <a href="../../menu2/detail.jsp?targetId={{target.id}}&typeId={{order.typeId}}" onclick="App.showLoading()" class="item-link item-content">
                        <div class="item-media" style="width:120px">
                            <div style="width:80px;height:80px">
                                <img src="${photoPath}{{target.contentLogo}}" style="display:block;height:100%;">
                            </div>
                        </div>
                        <div class="item-inner">
                                <div style="height:40px;width:100%;overflow:hidden;">{{target.title}}</div>
                                <div style="height:40px;width:100%;">
                                    <div style="height:20px"> </div>
                                    <img src="${cdnContentPath}/static/image/search/price-title-2x.png" width="37"/>
                                    <span style="color:#FF5B61;font-size:14px;font-weight: bold">￥{{target.price}}元/人</span>
                                    <span style="color: #103103;font-size:12px;text-decoration:line-through">￥{{target.oldPrice}}元/人</span>
                                </div>
                        </div>
                    </a>
                {{/if}}
                <div style="width:100%;height:40px;border-bottom: 1px solid #E5E5E5;border-top: 1px solid #E5E5E5;padding:7px 17px;">
                    {{order.buttonName}}
                </div>
            </li>
        </ul>
    </div>
    {{/each}}
</script>
<!-- 所有页面的详情均使用此模板-->
<%--<script type="text/template7" id="contentDetailModule">
    <div class="row" style="margin-bottom:5px;padding:10px;font-size: 16px;">
        <div class="col-100" style="color:#343434;">{{Title}}&nbsp;&nbsp;</div>
        <div class="col-100" style="font-weight: bold;color:red">
            <img src="${cdnContentPath}/static/image/search/price-title-2x.png" width="40">
            <span id="ticket-detail-price">￥{{Price}}</span><br/>
        </div>
    </div>
    <hr  style="height:1px;border:none;border-top:1px dashed #979797;position: relative;left:-17px;width:100%"/>
    <div class="content" id="description" style="margin:15px 0">{{Description}}</div>
    <hr  style="height:1px;border:none;border-top:1px dashed #979797;position: relative;left:-17px;width:100%"/>
    <img src="${cdnContentPath}/static/image/position-2x.png" width="12" />&nbsp;{{CityInfo}}{{Distance}}
</script>--%>


<script type="text/template7" id="contentDetailModule">
    <div class="row" style="margin-bottom:5px;padding:10px;font-size: 16px;">
        <div class="col-100" style="color:#343434;">{{Title}}&nbsp;&nbsp;</div>
        <div class="col-100" style="font-weight: bold;color:red">
            <img src="${cdnContentPath}/static/image/search/price-title-2x.png" width="40">
            <span id="ticket-detail-price">￥{{Price}}</span><br/>
        </div>
    </div>
    <hr  style="height:1px;border:none;border-top:1px dashed #979797;position: relative;left:-17px;width:100%"/>
    <div class="content" id="description" style="margin:15px 0">
        {{#if this.CpTd1}}
                <br/>
            <div>
              <h2 class="detail-description-title">----产品特点----</h2>
            </div>
            <div class="detail-description-content">
                {{CpTd1}}
            </div>
        {{/if}}

        {{#if this.XcAp1}}
        <br/>
        <div>
            <h2 class="detail-description-title">----行程安排----</h2>
        </div>
        <div class="detail-description-content">
            {{XcAp1}}
        </div>
        {{/if}}

        {{#if this.FySm1}}
        <br/>
        <div>
            <h2 class="detail-description-title">----费用说明----</h2>
        </div>
        <div class="detail-description-content">
            {{FySm1}}
        </div>
        {{/if}}

        {{#if this.YdXz1}}
        <br/>
        <div>
            <h2 class="detail-description-title">----预定须知----</h2>
        </div>
        <div class="detail-description-content">
            {{YdXz1}}
        </div>
        {{/if}}

        {{#if this.ZySx1}}
        <br/>
        <div>
            <h2 class="detail-description-title">----注意事项----</h2>
        </div>
        <div class="detail-description-content">
            {{ZySx1}}
        </div>
        {{/if}}

        {{#if this.TgGz1}}
        <br/>
        <div>
            <h2 class="detail-description-title">----退改规则----</h2>
        </div>
        <div class="detail-description-content">
            {{TgGz1}}
        </div>
        {{/if}}

        {{#if this.DescriptionTag}}
            {{Description}}
        {{/if}}

        {{Remarks}}

    </div>
    <hr  style="height:1px;border:none;border-top:1px dashed #979797;position: relative;left:-17px;width:100%"/>
    <img src="${cdnContentPath}/static/image/position-2x.png" width="12" />&nbsp;{{CityInfo}}{{Distance}}
</script>

<!-- 各种评论使用此模板-->
<script type="text/template7" id="ticketEvaluateModule">
    {{#each DataList}}
    <div class="content-block" style="border-bottom: 1px solid #E5E5E5;padding-bottom: 20px;">
        <div class="row">
            <div class="col-20" style="margin-right: 10px;padding-left:10px"><img src="{{User.UserLogo}}" width="100%" /></div>
            <div class="col-55" style="padding:5px 0 0 5px">
                <div style="width:100%;height:auto;font-size:14px;color:#343434;font-family:PingFang-SC-Light">{{User.Fullname}}</div>
                <div style="width:100%;height:auto;margin-top:3px">
                    {{Score}}
                </div>
            </div>
            <div class="col-25">{{CreateTime}}</div>
        </div>
        <div class="content" style="color:#666666;font-size:14px;font-family:PingFang-SC-Light">{{Content}}</div>
    </div>
    {{/each}}
</script>

